module.exports = function($modal, $state, $resource){

	return {

        restrict: 'EA',
        // replace: true,
        
        // template: require('../views/ui_icons.html'),
        link: function (scope, elements, attrs) {
            var is = elements.find('i');
            console.log(elements);
            console.log(is);
            for(var i = 0; i < is.length; i++){
                $(is[i]).click(function (obj) {
                    console.log(obj.target.className);
                });
            }
            
        },

	};

};

